cmake_minimum_required(VERSION 3.8)
project(test_command)

enable_testing()

add_test(test1 cp ${PROJECT_SOURCE_DIR}/a.txt ${PROJECT_SOURCE_DIR}/b.txt)

add_test(NAME test2 COMMAND cp ${PROJECT_SOURCE_DIR}/a.txt ${PROJECT_SOURCE_DIR}/c.txt)
